<div class="row">
    <div class="col-lg-12">
        <div class="ibox ">
            <div class="ibox-title">
                <h5>服务物品管理信息</h5>
                <div class="ibox-tools" style="top:10px;">
                    <button type="button" v-if="viewHousekeepingResourceInfo.index != 2" class="btn btn-primary btn-sm"
                        style="margin-right:10px;" v-on:click="_openSelectHousekeepingResourceInfoModel()">
                        <i class="glyphicon glyphicon-search"></i> 选择服务物品管理</button>

                    <button type="button" v-if="viewHousekeepingResourceInfo.index != 2" class="btn btn-primary btn-sm"
                        v-on:click="_openAddHousekeepingResourceInfoModel()">
                        <i class="glyphicon glyphicon-plus"></i> 添加服务物品管理</button>
                </div>
            </div>
            <div class="ibox-content">
                <div class="row">
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label">物品类型ID：</label>
                            <label class="">{{viewHousekeepingResourceInfo.resTypeId}}</label>
                        </div>
                    </div>
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label">物品类型名称：</label>
                            <label class="">{{viewHousekeepingResourceInfo.resTypeName}}</label>
                        </div>
                    </div>
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label">物品名称：</label>
                            <label class="">{{viewHousekeepingResourceInfo.resName}}</label>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label">物品编码：</label>
                            <label class="">{{viewHousekeepingResourceInfo.resCode}}</label>
                        </div>
                    </div>
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label">成本价：</label>
                            <label class="">{{viewHousekeepingResourceInfo.costPrice}}</label>
                        </div>
                    </div>
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label">出售价：</label>
                            <label class="">{{viewHousekeepingResourceInfo.price}}</label>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label">库存：</label>
                            <label class="">{{viewHousekeepingResourceInfo.stock}}</label>
                        </div>
                    </div>
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label">供应商ID：</label>
                            <label class="">{{viewHousekeepingResourceInfo.supplierId}}</label>
                        </div>
                    </div>
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label">供应商名称：</label>
                            <label class="">{{viewHousekeepingResourceInfo.supplierName}}</label>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label">描述：</label>
                            <label class="">{{viewHousekeepingResourceInfo.remark}}</label>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>

    <vc:create path="goods/addHousekeepingResource" callBackListener="viewHousekeepingResourceInfo"
        callBackFunction="chooseHousekeepingResource"></vc:create>


    <vc:create path="goods/chooseHousekeepingResource" emitChooseHousekeepingResource="viewHousekeepingResourceInfo"
        emitLoadData="viewHousekeepingResourceInfo"></vc:create>
</div>